﻿using XYAuto.MonitorData.Chitunion.Infrastruct.Verification;

namespace XYAuto.MonitorData.Chitunion.RunTask.ConfigEntity
{
    public class ConfigEntityBase
    {
        public int AtStartDateOffest { get; set; }
        public int NextLastDateOffset { get; set; }
        public string AtEveryDayHourRange { get; set; }

        /// <summary>
        /// 每天定时的小时
        /// </summary>
        public int AtEveryDayRangeForHour
        {
            get
            {
                return AtEveryDayHourRange.Split(':')[0].ToInt();
            }
        }
        /// <summary>
        /// 每天定时的分钟
        /// </summary>
        public int AtEveryDayRangeForMinutes
        {
            get
            {
                return AtEveryDayHourRange.Split(':')[1].ToInt();
            }
        }
        public bool IsStart { get; set; }

        public int SelectOffsetNum { get; set; }
        public int SelectTopSize { get; set; }
    }
}
